package android.tusnotas.parser.version;

import org.htmlcleaner.XPatherException;

import com.thoughtworks.xstream.XStream;

import android.tusnotas.beans.AppVersion;
import android.tusnotas.exception.ProcessingInstancesException;

public class VersionParser {
	public AppVersion parseXML(String XML) throws ProcessingInstancesException, XPatherException{
		XStream stream = new VersionXStream();
		AppVersion version = ((AppVersion) stream.fromXML(XML));
		return version;
	}
}
